package com.oldbook.manage.domain;

import com.oldbook.common.annotation.Excel;
import com.oldbook.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 敏感词管理对象 sys_sensitive_words
 *
 * @author Exiaoke
 * @date 2025-02-27
 */
@ApiModel(description = "敏感词管理对象")
@Data // Lombok annotation to generate all the boilerplate that is normally required for POJOs.
@NoArgsConstructor // Generates a constructor with no parameters.
@AllArgsConstructor // Generates a constructor with 1 parameter for each field in the class.
public class SensitiveWords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", name = "id", example = "", required = true)
    private Long id;

    /**
     * 敏感词
     */
    @Excel(name = "敏感词")
    @ApiModelProperty(value = "敏感词", name = "word", example = "", required = true)
    private String word;


    public static <R> R getContent(String s) {
        return (R) s;
    }
}